#ifndef RAWIMAGE_H
#define RAWIMAGE_H

#include <QDialog>
#include <QtGui>
#include "histwidget.h"
namespace Ui {
class RawImage;
}

class RawImage : public QDialog
{
    Q_OBJECT
    
public:
    explicit RawImage(QImage *image,float* hist,QWidget *parent = 0);
    int getBin(){return bin;}

    bool isEq;
    float map[256];
    ~RawImage();
    
private slots:
    void on_Manul_toggled(bool checked);

    void on_ok_button_clicked();

    void on_OSTU_toggled(bool checked);

    void on_radioButton_3_toggled(bool checked);

    void on_Cancel_clicked();

    void on_horizontalSlider_valueChanged(int value);

    void on_pushButton_clicked();

private:
    int bin;
    float hist[256];
    QImage preview_image;
    Ui::RawImage *ui;
    HistogramPainter *hist_widget;
};

#endif // RAWIMAGE_H
